﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Consulate.aspx.cs" Inherits="Consulate" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<h4 class="page_title">Consulate</h4>
<div class="hr dotted clearfix">&nbsp;</div>
    <asp:Panel ID="ConsulatePanel" runat="server" Visible="False">
        &nbsp;
        <asp:Button ID="addNewConsualtButton" runat="server" Text="New Consulat"  
            onclick="addNewConsualtButton_Click" CssClass="button" />
        <br />
        <br />
        <asp:Label ID="Label1" runat="server" Text = "Lista consulatelor" >  </asp:Label>

        <asp:GridView ID="consulatListGridView" runat="server" 
            CellPadding="4" 
            EnableModelValidation="True" 
            HorizontalAlign="Justify" 
            AutoGenerateColumns="False" 
            CssClass="mGrid"
            PagerStyle-CssClass="pgr"
            AlternatingRowStyle-CssClass="alt"
            Width="100%" 
            AllowPaging="True" 
            onpageindexchanging="consulatListGridView_PageIndexChanging"             
            onrowediting="consulatListEditButton_Click" 
            PageSize="20">
            
            <Columns>
                <asp:BoundField DataField="ID Consulat"     HeaderText="ID Consulat"        HtmlEncode="False"  HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass = "hideGridColumn" />  
                <asp:BoundField DataField="idTara"          HeaderText="ID Tara"             HtmlEncode="False" HeaderStyle-CssClass="hideGridColumn" ItemStyle-CssClass = "hideGridColumn" />     
                <asp:BoundField DataField="Tara"          HeaderText="Tara"             HtmlEncode="False"/>   
                <asp:BoundField DataField="Denumire"        HeaderText="Denumire"           HtmlEncode="False"/>  
                <asp:BoundField DataField="Adresa"          HeaderText="Adresa"             HtmlEncode="False"/>     
                <asp:BoundField DataField="Telefon"          HeaderText="Telefon"             HtmlEncode="False"/>  
                <asp:BoundField DataField="fax"          HeaderText="Fax"             HtmlEncode="False"/>  
                <asp:BoundField DataField="Email"          HeaderText="Email"             HtmlEncode="False"/>  
                <asp:BoundField DataField="Web"          HeaderText="Web"             HtmlEncode="False"/>  
                <asp:ButtonField ButtonType="Button" CommandName="Edit" Text="Edit" ControlStyle-CssClass="button" />

            </Columns>           
        </asp:GridView>

    </asp:Panel>

    <asp:Panel ID="addNewConsulatPanel" runat="server" Visible="False">
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label103" runat="server" Text="Tara: " ></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="addNewConsulatTaraDDL" runat="server"></asp:DropDownList>                    
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="addNewConsulatLabel" runat="server" Text="Denumirea: " ></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="addNewConsulatDenumireaTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="Adresa: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="addNewConsulatAdresaTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label107" runat="server" Text="Telefon: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="addNewConsulatTelefonTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label108" runat="server" Text="Fax: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="addNewConsulatFaxTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label109" runat="server" Text="Email: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="addNewConsulatEmailTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label110" runat="server" Text="Pagina WEB: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="addNewConsulatWebTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
        </table>

        <asp:Button ID="addNewConsulatSaveButton" runat="server" Text="Save" 
             onclick="addNewConsulatSaveButton_Click"  CssClass="button" />

        &nbsp;&nbsp;  

        <asp:Label ID="Label23" runat="server" Text="OR"></asp:Label>

        &nbsp;&nbsp;

        <asp:Button ID="addNewConsulatCancelButton" runat="server" Text="Cancel"  
            onclick="addNewConsulatCancelButton_Click"  CssClass="button" />                        
    </asp:Panel>
    
    <asp:Panel ID="editConsulatPanel" runat="server" Visible="False">
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="User ID: "></asp:Label>
                </td>
                <td>
                    <asp:Label ID="editConsulatLabelID" runat="server"></asp:Label>
                </td>
            </tr>

            <tr>
                <td>
                    <asp:Label ID="Label111" runat="server" Text="Tara: " ></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="editConsulatTaraDDL" runat="server"></asp:DropDownList>                    
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label112" runat="server" Text="Denumirea: " ></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="editConsulatDenumireTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label113" runat="server" Text="Adresa: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="editConsulatAdresaTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label115" runat="server" Text="Telefon: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="editConsulatTelefonTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label116" runat="server" Text="Fax: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="editConsulatFaxTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label117" runat="server" Text="Email: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="editConsulatEmailTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label118" runat="server" Text="Pagina WEB: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="editConsulatWebTextBox" runat="server" Width="161px"></asp:TextBox>
                </td>
            </tr>
        </table>

        <asp:Button ID="editConsulatSaveButton" runat="server" Text="Save" 
            onclick="editConsulatSaveButton_Click" CssClass="button" />

        &nbsp;&nbsp;  

        <asp:Label ID="Label29" runat="server" Text="OR"></asp:Label>

        &nbsp;&nbsp;

        <asp:Button ID="editConsulatCancelButton" runat="server" Text="Cancel"  
           onclick="editConsulatCancelButton_Click" CssClass="button" />                        
    </asp:Panel>

</asp:Content>

